const { shell,globalShortcut } = require('electron')
const path = require('path')


const AnderNav = {
    info: () => {
        return {
            name: 'AnderNav',
            title:'我的导航',
            type: 'File',
            icon: path.join(__dirname, 'favicon.ico'),
            url: path.join(__dirname, 'index.html'),
            extFile: path.join(__dirname, 'AnderNavMain.ts'),
        }
    },
    init: (win) => {
        win.setTitle('我的导航');
        
        win.webContents.ipc.on('Win:openBrowser', (event, arg) => {
            shell.openExternal(arg);
        });

        win.on('close', () => {
            console.log("AnderNav Close");
        })
    }
}
exports.Plugins = AnderNav;